import request from '@/utils/request'

// 查询医生档案列表
export function listDoctorinfo(query) {
  return request({
    url: '/business/doctorinfo/list',
    method: 'get',
    params: query
  })
}

// 查询医生档案详细
export function getDoctorinfo(id) {
  return request({
    url: '/business/doctorinfo/' + id,
    method: 'get'
  })
}

// 新增医生档案
export function addDoctorinfo(data) {
  return request({
    url: '/business/doctorinfo',
    method: 'post',
    data: data
  })
}

// 修改医生档案
export function updateDoctorinfo(data) {
  return request({
    url: '/business/doctorinfo',
    method: 'put',
    data: data
  })
}

// 删除医生档案
export function delDoctorinfo(id) {
  return request({
    url: '/business/doctorinfo/' + id,
    method: 'delete'
  })
}
